class CreateProducts < ActiveRecord::Migration
  def self.up
    create_table :products do |t|
      t.string :text, :limit => 140, :null => false
      t.references :product_tag

      t.integer :count
    end

    add_index :products, :product_tag_id
  end

  def self.down
    drop_table :products
  end
end
